﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="WebApplication1.Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <style>
        div{
            text-align:center;
        }
    </style>
    <form id="form1" runat="server">
        <div>
            <div>
                <table style="margin:auto;height:100px">
                    <caption><h1>欢迎来到登录界面！</h1></caption>
                    <tr>
                        <td>账号：</td>
                        <td>
                            <asp:TextBox ID="txt_UserName" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator runat="server" ErrorMessage="*账号不能为空！" ForeColor="Red" ControlToValidate="txt_UserName"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>密码：</td>
                        <td>
                            <asp:TextBox ID="txt_PassWord" runat="server" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator runat="server" ErrorMessage="*密码不能为空！" ForeColor="Red" ControlToValidate="txt_PassWord"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
            </div>
            <div>
                <asp:Button ID="btn_Login" runat="server" Text="登录" OnClick="btn_Login_Click" Width="102px" style="margin-left: 0px" />
            </div>
            <div>
                <asp:Label runat="server" ID="lab_UserNo" ForeColor="Red" ></asp:Label>
            </div>
        </div>
    </form>
</body>
</html>
